package com.ciwong.mobilelib.bean;

/**
 * 用户基础信息
 *
 * @author bin
 * @version ciwong v.1.0 2015/7/25 15:54
 * @since ciwong v.1.0
 */
public class UserInfoBase extends BaseBean
{


    private static final long serialVersionUID = 1911960505695110079L;
    /**
     * 用户ID
     */
    private long userId;

    /**
     * 用户头像
     */
    private String avatar;

    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 用户性别
     */
    private int sex;

    private  String mobile;

    public boolean isMobile() {
        return isMobile;
    }

    public void setIsMobile(boolean mobile) {
        isMobile = mobile;
    }

    private boolean isMobile;

    public long getUserId()
    {
        return userId;
    }

    public void setUserId(long userId)
    {
        this.userId = userId;
    }

    public String getAvatar()
    {
        return avatar;
    }

    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public String getRealName()
    {
        return realName;
    }

    public void setRealName(String realName)
    {
        this.realName = realName;
    }

    public String getNickName()
    {
        return nickName;
    }

    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public int getSex()
    {
        return sex;
    }

    public void setSex(int sex)
    {
        this.sex = sex;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Override
    public String toString() {
        return "UserInfoBase{" +
                "userId=" + userId +
                ", avatar='" + avatar + '\'' +
                ", realName='" + realName + '\'' +
                ", nickName='" + nickName + '\'' +
                ", sex=" + sex +
                ", mobile='" + mobile + '\'' +
                '}';
    }

    /**
     * 性别
     *
     * @author yzw
     *
     */
    public static class UserSex
    {
        /**
         * 女
         */
        public static final int USERSEX_WOMAN = 0;

        /**
         * 男
         */
        public static final int USERSEX_MAN = 1;

        /**
         * 其他
         */
        public static final int USERSEX_OTHER = 2;

        /**
         * 默认类型
         */
        public static final int USERSEX_NORMAL = 0;
    }
}
